package com.nsapi.niceschoolapi.service.impl;

import com.nsapi.niceschoolapi.entity.WeeksDB;
import com.nsapi.niceschoolapi.mapper.WeeksMapper;
import com.nsapi.niceschoolapi.service.WeeksService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("WeeksService")
public class WeeksServiceImpl implements WeeksService {

    @Resource
    private WeeksMapper weeksMapper;

    @Override
    public List<WeeksDB> getWeeksList() {
        return weeksMapper.selectList(null);
    }
}
